﻿namespace WebOptimizer.UI.ViewModels.Core
{
	[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1005:AvoidExcessiveParametersOnGenericTypes")]
	public abstract partial class EntityListViewModelBase<TList, TEntity> : Sidvall.UI.ViewModels.EntityListViewModelBase<TList, TEntity>
		where TList : global::WebOptimizer.UI.Entities.Core.BusinessBaseCollection<TEntity>
		where TEntity : global::WebOptimizer.UI.Entities.Core.BusinessBase
	{
		#region Public Members

		private global::WebOptimizer.UI.Entities.Caching.EntityCache _EntityCache;
		public global::WebOptimizer.UI.Entities.Caching.EntityCache EntityCache
		{
			get
			{
				if (_EntityCache == null)
					this.EntityCache = new global::WebOptimizer.UI.Entities.Caching.EntityCache();
				return _EntityCache;
			}
			set
			{
				_EntityCache = value;
				RaisePropertyChanged("EntityCache");
			}
		}

		#endregion
	}
}